package pattern.decorator;

public class Milk implements IProduct{
    private IProduct product;
    public Milk(IProduct product){
        this.product = product;
    }
    @Override
    public String getInfo() {
        return product.getInfo() + "加奶";
    }

    @Override
    public double getPrice() {
        return product.getPrice() + 5;
    }
}
